<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  watch: {
	  $route: {
	    handler: function(val, oldVal){
		   /*监听路由变化，每次新的页面，都把menu显示出来*/
			this.$store.commit('isShowMenu',true);
	    },
	    // 深度观察监听
	    deep: true
	  }
	},
}
</script>

<style>
#app {
  font-family: "microsoft yahei";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
</style>
